<?php

namespace App\Kuafu\Activity\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class ActivityCodeEnum extends BaseCodeEnum
{
    const ERR_ACTIVITY_PARAM_VALID         = 416001;
    const ERR_ACTIVITY_DB_ADD              = 416002;
    const ERR_ACTIVITY_DB_SET              = 416003;
    const ERR_ACTIVITY_DB_DEL              = 416004;
    const ERR_ACTIVITY_DB_PATCH            = 416005;
    const ERR_ACTIVITY_ID_NOT_EXIST        = 416006;
    const ERR_ACTIVITY_NAME_NOT_NULL       = 416007;
    const ERR_ACTIVITY_TIME_NOT_NULL       = 416008;
    const ERR_ACTIVITY_TYPE_NOT_NULL       = 416009;
    const ERR_ACTIVITY_STATUS_NOT_NULL     = 416010;
    const ERR_COUPON_NAME_NOT_NULL         = 416011;
    const ERR_ACTIVITY_SHOPS_NAME_NOT_NULL = 416012;
    const ERR_CREATED_BY_UID_NOT_NULL      = 416013;
    const ERR_ACTIVITY_NAME_EXIST          = 416014;
    const ERR_ACTIVITY_COUPON_EMPTY        = 416015;
    const ERR_ACTIVITY_NOT_STARTED         = 416016;
    const ERR_ACTIVITY_ENDED               = 416017;
    const ERR_ACTIVITY_NO_EXIST            = 416018;
    const ERR_ACTIVITY_NO_IMAGE            = 416019;
    const ERR_ACTIVITY_DETAIL_GET          = 416020;
    const ERR_ACTIVITY_TIME_COVER          = 416021;

    const CODE_TEXT = [
        self::ERR_ACTIVITY_PARAM_VALID         => "参数校验错误",
        self::ERR_ACTIVITY_DB_ADD              => "新增失败",
        self::ERR_ACTIVITY_DB_SET              => "编辑失败",
        self::ERR_ACTIVITY_DB_DEL              => "删除失败",
        self::ERR_ACTIVITY_DB_PATCH            => "上下架失败",
        self::ERR_ACTIVITY_ID_NOT_EXIST        => "ID记录不存在",
        self::ERR_ACTIVITY_NAME_NOT_NULL       => "请填写活动名称",
        self::ERR_ACTIVITY_TIME_NOT_NULL       => "请填写活动时间",
        self::ERR_ACTIVITY_TYPE_NOT_NULL       => "请填写活动类型",
        self::ERR_ACTIVITY_STATUS_NOT_NULL     => "请填写活动状态",
        self::ERR_COUPON_NAME_NOT_NULL         => "请填写优惠券名称",
        self::ERR_ACTIVITY_SHOPS_NAME_NOT_NULL => "请填写活动门店",
        self::ERR_CREATED_BY_UID_NOT_NULL      => "请填写创建人",
        self::ERR_ACTIVITY_NAME_EXIST          => "活动名称不能重复",
        self::ERR_ACTIVITY_COUPON_EMPTY        => "活动绑定优惠券不能为空",
        self::ERR_ACTIVITY_NOT_STARTED         => "活动尚未开始",
        self::ERR_ACTIVITY_ENDED               => "活动已结束",
        self::ERR_ACTIVITY_NO_EXIST            => "活动不存在",
        self::ERR_ACTIVITY_NO_IMAGE            => "请上传图片",
        self::ERR_ACTIVITY_DETAIL_GET          => "获取活动详情失败",
        self::ERR_ACTIVITY_TIME_COVER          => "存在时间重叠的活动，请修改活动起止时候再次提交"
    ];
}
